package com.yuanfeng.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuanfeng.business.dto.ModularizationdDTO;
import com.yuanfeng.business.dto.ShopBaseDTO;
import com.yuanfeng.business.entity.ShopJoinPayEntity;
import com.yuanfeng.business.vo.ShopPayInfoVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @ClassName ShopJoinPayMapper
 * @Description 支付凭证
 * @Author cf
 * @Date 2023/6/21 11:48
 * @Version 1.0
 */
@Mapper
public interface ShopJoinPayMapper extends BaseMapper<ShopJoinPayEntity> {

    void updateShopJoinPay(@Param("param") Map<String, Object> param);

    //向pay表插入数据
    Integer insertShopJoinPay(@Param("param") Map<String, Object> param);

    /**
     * 查找商家入驻的 账号,名称,地址,joinId,店铺名,店铺类型,绑定分类
     *
     * @param payId
     * @return
     */
    ShopBaseDTO queryForShopBase(@Param("payId") Integer payId);


    Integer add(@Param("param") ModularizationdDTO param);

    List<String> queryConfigKey(@Param("param") List<String> configKey);

    int insertConfigKey(@Param("list") List<String> configKey);

    /**
     * 平台查看审核商家入驻付款列表
     *
     * @param page
     * @param param
     * @return
     */
    IPage<ShopPayInfoVO> queryShopPayPage(Page<ShopPayInfoVO> page, @Param("param") Map<String, Object> param);


    /**
     *  查询待处理事件
     */

    Map<String, Object> selectcount();


    void updateShopPayShopType(@Param("payId")Integer payId,@Param("shopType")Integer shopType);
}
